package com.wkbb.common.enums;

public enum ProfilesActiveEnum {


    /**
     * 研发环境
     */
    DEV(11,"DEV"),
    /**
     * 测试环境
     */
    TEST(22,"TEST"),
    /**
     * 灰度环境
     */
    GRAY(33,"GRAY"),
    /**
     * 生产环境
     */
    PRO(44,"PRO");

    private ProfilesActiveEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (ProfilesActiveEnum profilesActiveEnum : ProfilesActiveEnum.values()) {
            if (profilesActiveEnum.getValue().intValue()==value) {
                return profilesActiveEnum.getDesc();
            }
        }
        return null;
    }
}
